package com.chuangyang.fixboxmaster.bean;

import java.io.Serializable;

public class DateTimeEvent implements Serializable{

	private int isSchedule;//是否预约
	
	public int isSchedule() {
		return isSchedule;
	}

	public void setSchedule(int isSchedule) {
		this.isSchedule = isSchedule;
	}


	private String dateAndTime;
	
	public DateTimeEvent(String dateAndTime, int isSchedule){
		this.dateAndTime = dateAndTime;
		this.isSchedule = isSchedule;
	}

	public String getDateAndTime() {
		return dateAndTime;
	}

	public void setDateAndTime(String dateAndTime) {
		this.dateAndTime = dateAndTime;
	}
	
	public String toDateString(){
		return dateAndTime.split(" ")[0].toString();
	}
	
	public String toTimeString(){
		return dateAndTime.split(" ")[1].toString();
	}
	
	
	@Override
	public String toString() {
		return dateAndTime;
	}
}
